package com.weixing.mall.provider.model.dto.cms;

import com.weixing.mall.provider.model.enums.cms.DeviceEunm;
import com.weixing.mall.provider.model.enums.IsForceUpdateEunm;
import com.weixing.mall.provider.model.enums.IsPublishEunm;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @ClassName AppVersionDto
 * @Description TODO <br/>
 * @Author gjq
 * @Modified By:
 * @Date 2019/7/25
 * @Version 1.0
 **/
@Data
@ApiModel(description = "App版本")
public class AppVersionDto {

    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "设备类型 0 Android,1 iOS")
    @NotNull(message = "设备类型不能为空")
    private DeviceEunm device;

    @ApiModelProperty(value = "版本编号")
    @NotNull(message = "版本编号不能为空")
    private String versionNum;

    @ApiModelProperty(value = "版本名称")
    @NotNull(message = "版本名称不能为空")
    private String versionName;

    @ApiModelProperty(value = "更新内容")
    @NotNull(message = "更新内容不能为空")
    private String versionIntro;

    @ApiModelProperty(value = "下载地址")
    @NotNull(message = "下载地址不能为空")
    private String downloadUrl;

    @ApiModelProperty(value = "是否强制更新 0不强制更新，1强制更新")
    @NotNull(message = "是否强制更新不能为空")
    private IsForceUpdateEunm isForceUpdate;

    @ApiModelProperty(value = "是否已发布 0未发布；1已发布")
    @NotNull(message = "是否已发布不能为空")
    private IsPublishEunm isPublish;

    @ApiModelProperty(value = "发布时间")
    private Date publishTime;


    /**
     * APP类型 1 会员APP   2 管理端APP
     */
    @ApiModelProperty(value = "APP类型 1 会员APP   2 管理端APP")
     private Integer appType;
}
